isPointerDown

open fun isPointerDown(pointerId: Int): Boolean(source)

Check if the given pointer ID represents a pointer that is currently down (to the best of the ViewDragHelper's knowledge).

The state used to report this information is populated by the methods shouldInterceptTouchEvent or processTouchEvent. If one of these methods has not been called for all relevant MotionEvents to track, the information reported by this method may be stale or incorrect.

Return

true if the pointer with the given ID is still down

Parameters

pointerId

pointer ID to check; corresponds to IDs provided by MotionEvent